Xbasic

OBJECT.MENUITEMENABLE Function

Syntax

.Menuitemenable(c menuitem ,l enable_flag )

Arguments

menuitem

The text of a menu entry.

enable_flag

Logical

.T. = Enable.
.F. = Disable (gray).

Description

Enables or disables a menu entry.

The <OBJECT>.MENUITEMENABLE() method applies to:

Browses (for <OBJECT> use either the <BROWSE> pointer or the name of the browse)
Forms (for <OBJECT> use either the <FORM> pointer or the name of the form)

The <OBJECT>.MENUITEMENABLE() method enables or disables (grays) a menu entry.

Example

The following example enables the Highlight Keywords entry in the Find menu.

dim ptr as P
ptr = form.load("Customer Information")
ptr.show()
ptr.MenuItemenable("Highlight Keywords", .T.)

Limitations

Desktop applications only.

See Also